package com.hzsai.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: hzsai
 * @date : 2020/3/17
 * usage:
 **/
@Getter
@Setter
@NoArgsConstructor
public class PushSampleEntity implements Serializable {

    private static final long serialVersionUID = 5678L;

    private String username;
    private LocalDateTime updatetime;

    public PushSampleEntity(String username, LocalDateTime updatetime) {
        this.username = username;
        this.updatetime = updatetime;
    }

    public static PushSampleEntity tran(String username, LocalDateTime updatetime) {
        return new PushSampleEntity(username, updatetime);
    }

    @Override
    public String toString() {
        return "{" +
                "username='" + username + '\'' +
                ", updatetime=" + updatetime.toString() +
                '}';
    }
}
